package com.sky.service.admin;

import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.dto.PasswordEditDTO;
import com.sky.pojo.Employee;
import com.sky.result.PageResult;
import com.sky.result.Result;

public interface EmployeeService {

    /*
     * 编辑员工信息
     * */
    Result<String> edit(EmployeeDTO employeeDTO);

    /*
     * 回显员工信息功能
     * */
    Result<Employee> getById(Long id);

    /*
     * 启用禁用员工账号
     * */
    Result<String> startOrStop(Integer status, Long id);

    /*
     * 分页查询员工列表
     * */
    Result<PageResult> page(EmployeePageQueryDTO employeePageQueryDTO);

    /*
    * 新增员工
    * */
    Result<String> addEmployee(EmployeeDTO employeeDTO);

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);


}
